From: Greg Sabino Mullane Date: Fri, 22 Jun 2007 18:45:10 +0000 (+0000) Subject: Return raw bytea string, not arrayified version for encodeBlob() X-Git-Tag: 1.31.0-rc.0~52442 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=ad9595593bb5a13d8e12d57c0ffe2f592c4f8343;p=lhc%2Fweb%2Fwiklou.git Return raw bytea string, not arrayified version for encodeBlob() --- diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 4b56543173..ef20292a5d 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -1099,7 +1099,7 @@ END; } function encodeBlob( $b ) { - return array('bytea',pg_escape_bytea($b)); + return pg_escape_bytea( $b ); } function decodeBlob( $b ) { return pg_unescape_bytea( $b );